package com.xqq.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
//import org.springframework.data.elasticsearch.annotations.Document;
//import org.springframework.data.elasticsearch.annotations.Field;
//import org.springframework.data.elasticsearch.annotations.FieldType;

@TableName("tb_l_param_malfunction_record")
@Data
//@Document(indexName = "tb_l_param_malfunction_record")
public class TbLParamMalfunctionRecordDO {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
//    @Field(name = "gmt_create", type = FieldType.Date, pattern = "yyyy-MM-dd HH:mm:ss")
    private String gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_update", fill = FieldFill.INSERT_UPDATE)
//    @Field(name = "gmt_update", type = FieldType.Date, pattern = "yyyy-MM-dd HH:mm:ss")
    private String gmtUpdate;

    /**
     * 参数id
     */
    @TableField("param_id")
//    @Field("param_id")
    private Long paramId;

    /**
     * 数据开始时间
     */
    @TableField("begin_time")
//    @Field(name = "begin_time", type = FieldType.Date, pattern = "yyyy-MM-dd HH:mm:ss")
    private String beginTime;

    /**
     * 数据结束时间
     */
    @TableField("end_time")
//    @Field(name = "end_time", type = FieldType.Date,pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

    /**
     * 模型ID
     */
    @TableField("model_id")
//    @Field("model_id")
    private Long modelId;

    /**
     * 唯一ID
     */
    @TableField("record_id")
//    @Field("record_id")
    private Long recordId;

    /**
     * 状态：0 初始，1已加入白名单，2已加入黑名单，4已忽略
     */
    @TableField("status")
    private Integer status;

    /**
     * 等级
     */
    @TableField("level")
    private Integer level;

    /**
     * 案例名称（XX模型XX时间出现异常）
     */
    @TableField("name")
    private String name;

    /**
     * 置信度
     */
    @TableField("confidence")
    private Double confidence;

    @TableField("features")
    private String features;

    @TableField("signals")
    private String signals;

    @TableField("is_delete")
//    @Field("is_delete")
    private Integer isDelete;

    @TableField("outlier")
    private Integer outlier;
}